package com.ruoyi.common.exception;
/*
* 订餐系统的业务异常类
*
*
*  */
public class BizException extends RuntimeException {
    //错误码
    private int code;
    //错误消息
    private String msg;

    public int getCode() {
        return code;
    }

    public BizException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
